
<form class="form-horizontal" action="{{$actionUrl}}" method="POST">
    @csrf
    <div class="form-group">
        <label class="col-sm-2 control-label" for="inputEmail">内容标题</label>
        <div class="col-sm-10">
            <input class="form-control" type="text" id="con_name" name="con_name" placeholder="请输入标题" value="{{$content->con_name??''}}"
            />
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label" for="inputEmail">内容拼音化</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="con_namepy" name="con_namepy" placeholder="为空自动拼音化" value="{{$content->con_namepy??''}}"
            />
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label" for="inputEmail">所属分卷</label>
        <div class="col-sm-10">
            <select class="span8" name="con_vid" id="con_vid">
                   
                                        @foreach ($vols as $v)
                                        @if (isset($content))
                                        <option value='{{$v->id}}' @if ($v->id===$content->con_vid)
                                                selected="selected"
                                        @endif 
                                         >{{$v->volname}}</option> 
                                        @else
                                        <option value='{{$v->id}}' 
                                         >{{$v->volname}}</option> 
                                        @endif
                                       
                                        @endforeach
                                            
										
										</select>

        </div>
    </div>


    <div class="form-group">
        <label class="col-sm-2 control-label" for="inputEmail">小说状态</label>
        <div class="col-sm-10">
            @if (isset($content))
            <label class="checkbox inline">
                    <input type="radio" id="novelstate" name="novelstate" value="0" class="fancy"
                    
                     @if ($content->novel->novelstate === 0)
                     checked="checked"
                     @endif/>
                     连载中 
                </label>
<label class="checkbox inline">
                    <input type="radio" id="novelstate" name="novelstate" value="1" class="fancy" 
        
                    @if ($content->novel->novelstate === 1)
                     checked="checked"
                     @endif/>
                     已完本
                </label> 
            @else
            <label class="checkbox inline">
                    <input type="radio" id="novelstate" name="novelstate" value="0" class="fancy"/>
                     连载中 
                </label>
<label class="checkbox inline">
                    <input type="radio" id="novelstate" name="novelstate" value="1" class="fancy" />
                     已完本
                </label> 
            @endif

            


        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label" for="inputEmail">内容</label>

        <div class="col-sm-10">
            <textarea id="redactor_content" name="con_text" rows="10" cols="80">{{$content->con_text??''}}</textarea>
        </div>
    </div>


    <div class="form-group">
        <div class="col-sm-2"></div>
        <div class="col-sm-10">
            <button type="button" class="btn btn-default" onclick="window.location='{{route('admin.content',['id'=>isset($content)?$content->con_nid:Request()->id])}}'">取消</button>
            <button type="submit" class="btn btn-info ">保存</button>

        </div>
    </div>
</form>